﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using Medianamik.Core;

namespace Medianamik.Client.MVP.Model.DataAccess
{
    public class NodeRepository : INodeRepository
    {
        public void Reorder(Guid id, Guid destinationId, DropPosition position)
        {
            NodeManager.ChangeNodeOrder(NodeManager.GetNode(id), destinationId, position);
        }

        public void SetActiveStatus(Guid id, CultureInfo culture, ActiveStatus status)
        {
            NodeManager.SetNodeActiveStatus(id, culture, status == ActiveStatus.Activated);
        }
    }
}
